<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./img/asset-favicon.ico">
    <title>社交-提交问题页</title>

    <!-- 页面 css js -->

    <!--<script type="text/javascript" src="../../plugins/ckeditor/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="../../plugins/ckeditor/ckeditor/sample.js"></script>-->


    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-submit.css"/>
</head>

<body>

<div class="wrapper">
    <!--引用组件-->
    <!--头部导航-->
    <div  id="app">
          <header>
            <div class="sui-navbar">
                <div class="navbar-inner">
                    <a href="/" class="sui-brand"><img src="./img/asset-logo-black.png" alt="社交"/></a>
                    <ul class="sui-nav">
                        <li><a href="/">头条</a></li>
                        <li class="active"><a href="./qa-logined.html">问答</a></li>
                        <li><a href="./activity-index.html">活动</a></li>
                        <li><a href="/">交友</a></li>
                        <li><a href="./spit-index.html">吐槽</a></li>
                        <li><a href="/">招聘</a></li>
                    </ul>
                    <form class="sui-form sui-form pull-left">
                        <input type="text" placeholder="输入关键词...">
                        <span class="btn-search fa fa-search"></span>
                    </form>
                    <div v-if="username" class="sui-nav pull-right info">
                        <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>
                        <li class="hover"><span class="fa fa-plus "></span>
                            <ul class="hoverinfo">
                                <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a
                                        href="./headline-submit.html">去分享</a>
                                </li>
                                <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html"
                                                                                                target="_blank">提问题</a>
                                </li>
                                <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html"
                                                                                        target="_blank">去吐槽</a></li>
                                <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a
                                        href="./makeFriends-submit.html" target="_blank">发约会</a></li>
                            </ul>
                        </li>
                        <li><a href="./person-homepage.html" target="_blank" class="homego"><img
                                src="./img/widget-photo.png" alt="用户头像"/></a></li>
                    </div>
                    <div v-else class="sui-nav pull-right info">
                        <li><a href="./person-loginsign.html" target="_blank">注册</a></li>
                        <li><a href="./person-loginsign.html" target="_blank" class="sui-btn btn-login">登录</a></li>
                    </div>
                </div>
            </div>

        </header>


        <div class="qa-submit-form">
            <form action="" class="sui-form" @submit.prevent="on_submit">
                <div class="input-title">
                    <input type="text" v-model="title" @blur="check_title" placeholder="标题：一句话说清问题，用问号结尾"
                           class="input-xfat input-xxlarge title">
                </div>
                <div class="tags-area">
                    <div class="input-tags">
                        <input type="text" v-model="label" @blur="check_label" placeholder="标签，如:php可使用逗号，分号； 来分隔"
                               class="input-xfat input-xxlarge" id="tags">
                    </div>
                    <div class="tags-box">
                        <ul class="sui-tag tag-bordered">
                            <li class="tag-item">javascript</li>
                            <li class="tag-item">php</li>
                            <li class="tag-item">css</li>
                            <li class="tag-item">html</li>
                            <li class="tag-item">java</li>
                            <li class="tag-item">python</li>
                            <li class="tag-item">html5</li>
                            <li class="tag-item">node.js</li>
                            <li class="tag-item">c++</li>
                        </ul>
                    </div>
                </div>

                <div class="editor">

                    <textarea name="editor1" v-model="content" @blur="check_content"></textarea>
                </div>
                <div class="submit">
                    <span>已保存草稿</span>
                    <input type="submit" class="sui-btn btn-release" value="发布问题">
                </div>
                <div class="clearfix"></div>
            </form>
        </div>
    </div>

    <!-- <script>
        $(function () {
            $("#tags").focus(function () {
                $(".tags-box").css("display", "block");
                $(".tag-item").click(function () {
                    var text = $(this).text();
                    $("#tags").before("<span class='tags-detail with-x'>" + text + "<i>×</i></span>");
                    $(".tags-detail").click(function () {
                        $(this).remove();
                    })
                });
            });

        })

    </script>
    <script type="text/javascript">
        $(document).click(function () {
            $(".tags-box").hide();
        });
        $(".tags-area").click(function (event) {
            event.stopPropagation();
        });

    </script> -->

    <div class="footer">


    </div>
</div>
<script>
    // $(function(){
    //   $(".hover").hover(function(){
    //     $(".hoverinfo").stop().animate({
    //        opacity: "show"
    //     },"slow");
    //     $(this).find(".fa-plus").css("color","#e64620");
    //   },function(){
    //     $(".hoverinfo").stop().animate({
    //        opacity: "hide"
    //     },"slow");
    //     $(this).find(".fa-plus").css("color","#000");
    //   })
    // })
</script>
<script src="plugins/jquery/dist/jquery.min.js">
</script>
<script src="./js/vue-2.5.16.js"></script>
<script src="./js/axios-0.18.0.min.js"></script>
<script src="./js/base.js"></script>
<script src="./js/qa-submit.js"></script>
<script src="./plugins/ckeditor/ckeditor.js"></script>
<script>
    CKEDITOR.replace('editor1');


    //initSample();
</script>

</body>
